package com.dwin.h5.app.services.mqtt;

import org.eclipse.paho.client.mqttv3.MqttMessage;

public class MqttMessageWithTopic {
    public MqttMessage message;
    public String topic;

    public MqttMessageWithTopic(String topic, MqttMessage message) {
        this.message = message;
        this.topic = topic;
    }

    @Override
    public String toString() {
        return "MqttMessageWithTopic{" +
                "message=" + message +
                ", topic='" + topic + '\'' +
                '}';
    }
}
